package com.yehangtech.designpattern.行为型_命令模式.service;

public class GuangDongCai implements ICaiPin {
    private ICook cook;

    public GuangDongCai(ICook cook) {
        this.cook = cook;
    }

    @Override
    public void zuoCai() {
        cook.doCook();
    }
}
